#import "CTHeaderTitleView.h"
@interface CTHeaderTitleView ()
@end
@implementation CTHeaderTitleView
-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if(self){
        self.contentView.backgroundColor = [UIColor whiteColor];
        [self createUI];
    }
    return self;
}
-(void)createUI {
    [self.contentView addSubview:self.titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(Ratio(12));
        make.left.mas_equalTo(Ratio(16));
    }];
}
- (UILabel *)titleLabel {
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.numberOfLines = 1;
        _titleLabel.font = [UIFont systemFontOfSize:Ratio(15) weight:UIFontWeightMedium];
        _titleLabel.textColor = [UIColor color30323E];
        _titleLabel.text = @"";
    }
    return _titleLabel;
}
@end
